class Solution
{
public:
    string categorizeBox(int length, int width, int height, int mass)
    {
        long long volume = 1LL * length * width * height;
        bool bulky = (volume >= 10'0000'0000LL) || (max({length, width, height}) >= 10000);
        bool heavy = (mass >= 100);
        if (bulky && heavy)
        {
            return "Both";
        }
        if (!bulky && !heavy)
        {
            return "Neither";
        }
        if (bulky && !heavy)
        {
            return "Bulky";
        }
        if (!bulky && heavy)
        {
            return "Heavy";
        }
        return "";
    }
};